package com.baizhi.cmfzmanager.appcontroller;


import com.baizhi.cmfzmanager.entity.Banner;
import com.baizhi.cmfzmanager.service.BannerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/shouye")
public class AppBannerController {

    @Autowired
    private BannerService bannerService;
    @GetMapping("/getShowyeBanner")
    public List<Banner> getShowyeBanner(){

        return bannerService.getShowBanner();
    }

}
